package com.freemalll.merchant.mapper.merchantAuditManage;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.merchant.domain.dto.MerchantAuditManageDto;
import com.freemalll.merchant.domain.entity.MerMerchant;
import com.freemalll.merchant.domain.vo.MerchantApplyCountVo;
import com.freemalll.merchant.domain.vo.MerchantAuditPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MerchantAuditManageMapper extends BaseMapper<MerMerchant> {
    /**
     * 分页
     *
     * @param page
     * @param dto
     * @return
     */

    Page<MerchantAuditPageVo> listPage(Page page, @Param("dto") MerchantAuditManageDto dto, @Param("userId") String userId);


    MerchantApplyCountVo countByAuthStatus(@Param("dto") MerchantAuditManageDto dto, @Param("accountId") String accountId);
}
